#ifndef _LS2H_H
#define _LS2H_H

#define LS2X_CFG_BASE			0x1fd00000
#define LS2X_APB_BASE			0x1fe00000

#define LS2X_APB_DMA_BASE		0x1fd00100

#define LS2X_PLL_BASE			0x1fd00220
#define LS2X_CLK_REG(x) \
		((void __iomem *)CKSEG1ADDR(LS2X_PLL_BASE + (x)))
#define LS2H_CLOCK_CTRL0		LS2X_CLK_REG(0x00)
#define LS2H_CLOCK_CTRL1		LS2X_CLK_REG(0x04)
#define LS2H_CLOCK_CTRL2		LS2X_CLK_REG(0x08)
#define LS2H_CLOCK_CTRL3		LS2X_CLK_REG(0x0c)

#define LS2X_PIXPLL_BASE		0x1fd00230

#define LS2X_CHIP_CFG_BASE		0x1fd00200
#define LS2X_CHIP_CFG(x) \
		((void __iomem *)CKSEG1ADDR(LS2X_CHIP_CFG_BASE + (x)))
#define LS2H_CHIP_CONFIG0		LS2X_CHIP_CFG(0x00)
#define LS2H_CHIP_CONFIG1		LS2X_CHIP_CFG(0x04)
#define LS2H_CHIP_CONFIG2		LS2X_CHIP_CFG(0x08)
#define LS2H_CHIP_CONFIG3		LS2X_CHIP_CFG(0x0c)

#define LS2H_CHIP_SAMPLE0		LS2X_CHIP_CFG(0x10)
#define LS2H_CHIP_SAMPLE1		LS2X_CHIP_CFG(0x14)
#define LS2H_CHIP_SAMPLE2		LS2X_CHIP_CFG(0x18)
#define LS2H_CHIP_SAMPLE3		LS2X_CHIP_CFG(0x1c)

#define LS2X_NAND_BASE			0x1fee0000
#define LS2X_SPI0_BASE			0x1fe70000
#define LS2X_DC_BASE			0x1fe50000

#define ACPI_OFF	0xf0000

#include "pm.h"

#endif /*_LS2H_H*/
